import React from "react";
import { Button, Image, View } from "@tarojs/components";
import "./index.scss";

export default () => {
  const product = {
    name: "特产A",
    image: "https://th.bing.com/th/id/OIP.QTcKBnXgU1Huq8hBqkQt3AHaE7?rs=1&pid=ImgDetMain",
    description: "这是特产A的详细介绍。",
  };

  return (
    <View className="product-page">
      <View className="product-title">{product.name}</View>
      <Image className="product-image" src={product.image} />
      <View className="product-description">{product.description}</View>
      <Button className="order-button">下单</Button>
    </View>
  );
};
